package com.inno.subject.infra.basic.service;

import com.github.pagehelper.Page;
import com.inno.subject.infra.basic.entity.PlannerSubjectCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 题目收藏信息表(PlannerSubjectCollect)表服务接口
 *
 * @author makejava
 * @since 2024-11-22 13:52:09
 */
public interface PlannerSubjectCollectService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    PlannerSubjectCollect queryById(Long id);


    /**
     * 新增数据
     *
     * @param plannerSubjectCollect 实例对象
     * @return 实例对象
     */
    PlannerSubjectCollect insert(PlannerSubjectCollect plannerSubjectCollect);

    /**
     * 修改数据
     *
     * @param plannerSubjectCollect 实例对象
     * @return 实例对象
     */
    PlannerSubjectCollect update(PlannerSubjectCollect plannerSubjectCollect);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    Page<PlannerSubjectCollect> queryPage(PlannerSubjectCollect subjectCollectBO);



    Long queryCollectCountBySubjectId(Long subjectId);

    PlannerSubjectCollect queryBySubjectIdAndUserId(PlannerSubjectCollect plannerSubjectCollect);

    List<PlannerSubjectCollect> queryBySubjectIdsAndUserId( Set<Long> subjectIdList,Long currentUser);
}
